package easycloud.ecs.server.service;

import javax.inject.Inject;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import easycloud.ecs.common.repository.LogRepository;
import easycloud.ecs.common.service.LogService;

@Service
@Transactional(readOnly = true)
public class LogServiceImpl implements LogService {

	private static final Log logger = LogFactory.getLog(LogServiceImpl.class);

	@Inject
	private LogRepository logRepository;

	@Transactional(readOnly = false)
	public void submitLog(easycloud.ecs.common.domain.Log log) {
		logRepository.save(log);
	}

}
